﻿<Window x:Class="SmartMeterParamSetting.UI.UI_About"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="UI_About" Height="248" Width="433" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True" Background="Transparent" ShowInTaskbar="False">
    <Border CornerRadius="6" BorderBrush="{DynamicResource selectedStroke}" BorderThickness="1">
        <Grid>
            <Image Canvas.Left="0" Canvas.Top="0" Canvas.Bottom="0" Canvas.Right="0" Height="{Binding UI_About.Height}" Width="{Binding UI_About.Width}"  Source="/Image/AboutBackground.jpg" Stretch="UniformToFill"/>
            <Canvas>
                <TextBlock  Canvas.Left="10" Canvas.Top="18" Name="Txt_Caption"  FontFamily="Arial" Text="智能电能表参数校对及费控功能测试软件" FontSize="16">
                        <TextBlock.TextEffects>
                    <TextEffect PositionCount="1" x:Name="MyTextEffect">
                        <TextEffect.Transform>
                            <SkewTransform x:Name="TextEffectSkewTransfrom" CenterX="0" CenterY="0"></SkewTransform>
                        </TextEffect.Transform>
                    </TextEffect>
                </TextBlock.TextEffects>
                </TextBlock>
                <Rectangle Canvas.Left="16" Canvas.Top="38" Name="ReflectedText"
                   Height="{Binding ElementName=Txt_Caption,Path=ActualHeight}"
                   Width="{Binding ElementName=Txt_Caption,Path=ActualWidth}"
                   HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5">
                    <Rectangle.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform AngleX="39"/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Rectangle.RenderTransform>
                    <Rectangle.OpacityMask>
                        <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                            <LinearGradientBrush.GradientStops>
                                <GradientStop Offset="0.0" Color="#66000000"></GradientStop>
                                <GradientStop Offset="1.0" Color="#00000000"></GradientStop>
                            </LinearGradientBrush.GradientStops>
                        </LinearGradientBrush>
                    </Rectangle.OpacityMask>

                    <Rectangle.Fill>
                        <VisualBrush Visual="{Binding ElementName=Txt_Caption}">
                            <VisualBrush.RelativeTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="-1"></ScaleTransform>
                                    <TranslateTransform Y ="1"></TranslateTransform>
                                </TransformGroup>
                            </VisualBrush.RelativeTransform>
                        </VisualBrush>
                    </Rectangle.Fill>
                </Rectangle>

                <StackPanel Orientation="Horizontal" Canvas.Left="10"  Canvas.Top="67" >
                    <TextBlock Text="操作系统版本：" />
                    <TextBlock Name="Txt_OS"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Canvas.Left="10" Canvas.Top="89" >
                    <TextBlock Text="系统框架版本："/>
                    <TextBlock Name="Txt_System"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Canvas.Left="22"  Canvas.Top="111" >
                    <TextBlock Text="程序集版本："  Canvas.Top="85" />
                    <TextBlock Name="Txt_Assembly" Text="V 1.0.0"/>
                </StackPanel>

                <StackPanel Orientation="Horizontal" Canvas.Left="34"  Canvas.Top="133" >
                    <TextBlock Text="文件版本："/>
                    <TextBlock Name="Txt_FileVersion"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" Canvas.Left="10"  Canvas.Bottom="24" >
                    <TextBlock Text="安装序号："/>
                    <TextBlock Name="Txt_DiskSn"/>
                </StackPanel>
                <TextBlock Text="技术支持：" Canvas.Right="135" Canvas.Top="133" />
                <TextBlock Text="18628353508" Canvas.Right="90" Canvas.Top="155" />
                <TextBlock Text="15882415397" Canvas.Right="90" Canvas.Top="177" />
                <TextBlock Text="Copyright ©  2012 Winahriman's Studio" Canvas.Left="10" Canvas.Bottom="5" />
                <Button Name="Btn_ImportLicense" Content="导入许可文件" Width="80"  Canvas.Right="10" Canvas.Bottom="30" Visibility="Hidden" Click="Button_Click" />
                <Button Name="Btn_Close" Content="关    闭" Width="80"  Canvas.Right="10" Canvas.Bottom="5" Click="Button_Click" />
            </Canvas>
        </Grid>

    </Border>
</Window>
